package com.yixing.tech.entity.entity.attr;

import com.yixing.tech.common.base.BusinessException;
import com.yixing.tech.entity.entity.CustomActionParam;
import com.yixing.tech.common.vo.s5.EntitySchema;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * @author yixing tech
 * @description
 * @date 2024/7/15 09:42:01
 */
@Component
public class CustomOp extends AttrType {

    private static CustomOp self;
    @PostConstruct
    private void init() {
        self = this;
    }

    public CustomOp() {
        super("自定义操作", "customOp");
    }

    /**
     * 行为
     *
     */
    @Override
    public void exeAction(CustomActionParam param, List<EntitySchema.AttrVO> attrs) throws BusinessException {
        super.exeAction(param, attrs);
        throw new BusinessException("不支持处理，联系开发");
    }
}
